package cn.wolfcode.luowowo.scenic.domain;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import lombok.*;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class TicketDetail extends BaseDomain {

    private Integer type;

    private String setmeal;

    private Integer price;

    private Ticket ticket;

    public String getTypeName() {
        String msg = "";
        if (type == 1) {
            msg = "成人票";
        } else if (type == 2) {
            msg = "儿童票";
        } else if (type == 3) {
            msg = "双人票";
        } else if (type == 4) {
            msg = "特惠套餐票";
        } else if (type == 5) {
            msg = "免费";
        }
        return msg;
    }

}